package com.scuec.groupfive.vo;

import java.io.Serializable;

/**
 * 知识点掌握情况统计VO
 */
public class KnowledgeStatisticsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String chapterName;  // 章节名称
    private Integer correctQuestionCount;  // 做对唯一题数
    private Integer totalQuestionCount;  // 做过唯一题数
    private Double correctRate;  // 正确率百分比
    private Integer chapterTotalQuestionCount;  // 章节总题数
    private Double progressRate;  // 进度百分比

    // 无参构造函数
    public KnowledgeStatisticsVO() {
    }

    // 全参构造函数
    public KnowledgeStatisticsVO(String chapterName, Integer correctQuestionCount,
                                 Integer totalQuestionCount, Double correctRate,
                                 Integer chapterTotalQuestionCount, Double progressRate) {
        this.chapterName = chapterName;
        this.correctQuestionCount = correctQuestionCount;
        this.totalQuestionCount = totalQuestionCount;
        this.correctRate = correctRate;
        this.chapterTotalQuestionCount = chapterTotalQuestionCount;
        this.progressRate = progressRate;
    }

    // Getter和Setter方法
    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public Integer getCorrectQuestionCount() {
        return correctQuestionCount;
    }

    public void setCorrectQuestionCount(Integer correctQuestionCount) {
        this.correctQuestionCount = correctQuestionCount;
    }

    public Integer getTotalQuestionCount() {
        return totalQuestionCount;
    }

    public void setTotalQuestionCount(Integer totalQuestionCount) {
        this.totalQuestionCount = totalQuestionCount;
    }

    public Double getCorrectRate() {
        return correctRate;
    }

    public void setCorrectRate(Double correctRate) {
        this.correctRate = correctRate;
    }

    public Integer getChapterTotalQuestionCount() {
        return chapterTotalQuestionCount;
    }

    public void setChapterTotalQuestionCount(Integer chapterTotalQuestionCount) {
        this.chapterTotalQuestionCount = chapterTotalQuestionCount;
    }

    public Double getProgressRate() {
        return progressRate;
    }

    public void setProgressRate(Double progressRate) {
        this.progressRate = progressRate;
    }

    @Override
    public String toString() {
        return "KnowledgeStatisticsVO{" +
                "chapterName='" + chapterName + '\'' +
                ", correctQuestionCount=" + correctQuestionCount +
                ", totalQuestionCount=" + totalQuestionCount +
                ", correctRate=" + correctRate +
                ", chapterTotalQuestionCount=" + chapterTotalQuestionCount +
                ", progressRate=" + progressRate +
                '}';
    }
}
